package com.multi.thread.chapter03.demo16;

public class ThreadA extends Thread {
	
	private ThreadB threadb;

	public ThreadA(ThreadB threadb) {
		this.threadb = threadb;
	}
	
	@Override
	public void run() {
		try {
			synchronized (threadb) {
				threadb.start();
				threadb.join();
				System.out.println("thread b run end timer = " + System.currentTimeMillis());
			}
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
